package com.tech.repository.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 公告信息实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Port implements Serializable {
	private Integer nid;
	private String ntitle;
	private String ncontent;
	/**
	 * 公告的创建时间，不建议修改，因为数据库的公告时间要随着ID增长不断增长
	 */
	private Date ncreatetime;

	public Port(Integer nid) {
		this.nid = nid;
	}
}
